function paginationTable(url,type){
	$.ajax({
		type		:	'GET',
		url			:  	 url,
		dataType	: 	"json",
		success: function(data){
			if(data.value==1){
				members=eval(data.result);
				var optInit = getOptionsFromForm(type);
				$("#Pagination").pagination(members.length, optInit);
			}else{
				$("#errornodata_message").html(errornodata_message);
			}
		}
	});
}
function getOptionsFromForm(type){
	if(type=='Order'){
		var opt = {callback:pageselectCallbackOrder};
	}else if(type=='Renewal'){
		var opt = {callback:pageselectCallbackRenewal};
	}else if(type=='Review'){
		var opt = {callback:pageselectCallbackReview};
	}else if(type=='Discount'){
		var opt = {callback:pageselectCallbackDiscount};
	}else if(type=='Complints'){
		var opt = {callback:pageselectCallbackComplints};
	}else if(type=='Services'){
		var opt = {callback:pageselectCallbackServices};
	}
	$("input:text").each(function(){
		opt[this.name] = this.className.match(/numeric/) ? parseInt(this.value) : this.value;
	});
	var htmlspecialchars ={ "&":"&amp;", "<":"&lt;", ">":"&gt;", '"':"&quot;"}
	$.each(htmlspecialchars, function(k,v){
		opt.prev_text = opt.prev_text.replace(k,v);
		opt.next_text = opt.next_text.replace(k,v);
	})
	return opt;
}